<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>分类: 技术教程 | 小小程序员</title><meta name="author" content="十一星野"><meta name="copyright" content="十一星野"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="相关视频教程 商品模块数据库表解析（一）open in new window 商品模块数据库表解析（二）open in new window 商品模块接口设计与实现_上篇open in new window 商品模块接口设计与实现_下篇open in new window  #编辑商品#相关表结构#商品表 商品信息主要包括四部分：商品的基本信息、商品的促销信息、商品的属性信息、商品的关联，商品表是">
<meta property="og:type" content="article">
<meta property="og:title" content="商品模块数据库表解析（二）">
<meta property="og:url" content="https://ko25891wan.gitlab.io/2024/01/7ffcadad798e.html">
<meta property="og:site_name" content="小小程序员">
<meta property="og:description" content="相关视频教程 商品模块数据库表解析（一）open in new window 商品模块数据库表解析（二）open in new window 商品模块接口设计与实现_上篇open in new window 商品模块接口设计与实现_下篇open in new window  #编辑商品#相关表结构#商品表 商品信息主要包括四部分：商品的基本信息、商品的促销信息、商品的属性信息、商品的关联，商品表是">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/%E5%A4%B4%E5%83%8F/%E7%81%B0%E5%A4%AA%E7%8B%BC.png">
<meta property="article:published_time" content="2024-01-21T09:25:58.000Z">
<meta property="article:modified_time" content="2024-02-02T15:12:39.019Z">
<meta property="article:author" content="十一星野">
<meta property="article:tag" content="宅男,热血">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/%E5%A4%B4%E5%83%8F/%E7%81%B0%E5%A4%AA%E7%8B%BC.png"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="https://ko25891wan.gitlab.io/2024/01/7ffcadad798e.html"><link rel="preconnect" href="//fastly.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.5.1/css/all.min.css"><link rel="stylesheet" href="https://cdn.staticfile.org/fancyapps-ui/5.0.32/fancybox/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
  root: '/',
  algolia: undefined,
  localSearch: {"path":"/search.xml","preload":false,"top_n_per_article":1,"unescape":false,"languages":{"hits_empty":"找不到您查询的内容：${query}","hits_stats":"共找到 ${hits} 篇文章"}},
  translate: {"defaultEncoding":1,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"简"},
  noticeOutdate: undefined,
  highlight: {"plugin":"highlight.js","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":200},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: true,
    post: true
  },
  runtime: '',
  dateSuffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  infinitegrid: {
    js: 'https://cdn.staticfile.org/egjs-infinitegrid/4.11.0/infinitegrid.min.js',
    buttonText: '加载更多'
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false,
  percent: {
    toc: true,
    rightside: true,
  },
  autoDarkmode: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: '分类: 技术教程',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2024-02-02 23:12:39'
}</script><script>(win=>{
      win.saveToLocal = {
        set: (key, value, ttl) => {
          if (ttl === 0) return
          const now = Date.now()
          const expiry = now + ttl * 86400000
          const item = {
            value,
            expiry
          }
          localStorage.setItem(key, JSON.stringify(item))
        },
      
        get: key => {
          const itemStr = localStorage.getItem(key)
      
          if (!itemStr) {
            return undefined
          }
          const item = JSON.parse(itemStr)
          const now = Date.now()
      
          if (now > item.expiry) {
            localStorage.removeItem(key)
            return undefined
          }
          return item.value
        }
      }
    
      win.getScript = (url, attr = {}) => new Promise((resolve, reject) => {
        const script = document.createElement('script')
        script.src = url
        script.async = true
        script.onerror = reject
        script.onload = script.onreadystatechange = function() {
          const loadState = this.readyState
          if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
          script.onload = script.onreadystatechange = null
          resolve()
        }

        Object.keys(attr).forEach(key => {
          script.setAttribute(key, attr[key])
        })

        document.head.appendChild(script)
      })
    
      win.getCSS = (url, id = false) => new Promise((resolve, reject) => {
        const link = document.createElement('link')
        link.rel = 'stylesheet'
        link.href = url
        if (id) link.id = id
        link.onerror = reject
        link.onload = link.onreadystatechange = function() {
          const loadState = this.readyState
          if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
          link.onload = link.onreadystatechange = null
          resolve()
        }
        document.head.appendChild(link)
      })
    
      win.activateDarkMode = () => {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = () => {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
        if (t === 'dark') activateDarkMode()
        else if (t === 'light') activateLightMode()
      
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
      const detectApple = () => {
        if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
          document.documentElement.classList.add('apple')
        }
      }
      detectApple()
    })(window)</script><meta name="generator" content="Hexo 6.3.0"></head><body><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><div class="spinner-box"><div class="configure-border-1"><div class="configure-core"></div></div><div class="configure-border-2"><div class="configure-core"></div></div><div class="loading-word">加载中...</div></div></div><script>(()=>{
  const $loadingBox = document.getElementById('loading-box')
  const $body = document.body
  const preloader = {
    endLoading: () => {
      $body.style.overflow = ''
      $loadingBox.classList.add('loaded')
    },
    initLoading: () => {
      $body.style.overflow = 'hidden'
      $loadingBox.classList.remove('loaded')
    }
  }

  preloader.initLoading()
  window.addEventListener('load',() => { preloader.endLoading() })

  if (false) {
    document.addEventListener('pjax:send', () => { preloader.initLoading() })
    document.addEventListener('pjax:complete', () => { preloader.endLoading() })
  }
})()</script><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/%E5%A4%B4%E5%83%8F/%E7%81%B0%E5%A4%AA%E7%8B%BC.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">120</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">4</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">22</div></a></div><hr class="custom-hr"/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fa fa-heartbeat"></i><span> 清单</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/Gallery/"><i class="fa-fw fas fa-images"></i><span> 照片</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> 电影</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-tools"></i><span> 工具</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/md_editor/"><i class="fa-fw fas fa-pen"></i><span> MDEditor_my</span></a></li></ul></div></div></div></div><div class="post" id="body-wrap"><header class="not-top-img" id="page-header"><nav id="nav"><span id="blog-info"><a href="/" title="小小程序员"><span class="site-name">小小程序员</span></a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search" href="javascript:void(0);"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fa fa-heartbeat"></i><span> 清单</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/Gallery/"><i class="fa-fw fas fa-images"></i><span> 照片</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> 电影</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-tools"></i><span> 工具</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/md_editor/"><i class="fa-fw fas fa-pen"></i><span> MDEditor_my</span></a></li></ul></div></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav></header><main class="layout" id="content-inner"><div id="post"><div id="post-info"><h1 class="post-title">商品模块数据库表解析（二）</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2024-01-21T09:25:58.000Z" title="发表于 2024-01-21 17:25:58">2024-01-21</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-02-02T15:12:39.019Z" title="更新于 2024-02-02 23:12:39">2024-02-02</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/%E6%8A%80%E6%9C%AF%E6%95%99%E7%A8%8B/">技术教程</a><i class="fas fa-angle-right post-meta-separator"></i><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/%E6%8A%80%E6%9C%AF%E6%95%99%E7%A8%8B/mall/">mall</a><i class="fas fa-angle-right post-meta-separator"></i><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/%E6%8A%80%E6%9C%AF%E6%95%99%E7%A8%8B/mall/%E4%B8%9A%E5%8A%A1%E7%AF%87/">业务篇</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">1.8k</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>7分钟</span></span><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="商品模块数据库表解析（二）"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div><article class="post-content" id="article-container"><h2 id="相关视频教程"><a href="#相关视频教程" class="headerlink" title="相关视频教程"></a>相关视频教程</h2><ul>
<li><a target="_blank" rel="noopener" href="https://t.zsxq.com/0f62HCxxB">商品模块数据库表解析（一）open in new window</a></li>
<li><a target="_blank" rel="noopener" href="https://t.zsxq.com/0ffWOuGoZ">商品模块数据库表解析（二）open in new window</a></li>
<li><a target="_blank" rel="noopener" href="https://t.zsxq.com/0fn7fFblb">商品模块接口设计与实现_上篇open in new window</a></li>
<li><a target="_blank" rel="noopener" href="https://t.zsxq.com/0fRfZnKmV">商品模块接口设计与实现_下篇open in new window</a></li>
</ul>
<h2 id="编辑商品"><a href="#编辑商品" class="headerlink" title="#编辑商品"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E7%BC%96%E8%BE%91%E5%95%86%E5%93%81">#</a>编辑商品</h2><h3 id="相关表结构"><a href="#相关表结构" class="headerlink" title="#相关表结构"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E7%9B%B8%E5%85%B3%E8%A1%A8%E7%BB%93%E6%9E%84">#</a>相关表结构</h3><h4 id="商品表"><a href="#商品表" class="headerlink" title="#商品表"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%95%86%E5%93%81%E8%A1%A8">#</a>商品表</h4><blockquote>
<p>商品信息主要包括四部分：商品的基本信息、商品的促销信息、商品的属性信息、商品的关联，商品表是整个商品的基本信息部分。</p>
</blockquote>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br></pre></td><td class="code"><pre><span class="line">create table pms_product</span><br><span class="line">(</span><br><span class="line">   id                   bigint not null auto_increment,</span><br><span class="line">   brand_id             bigint comment &#x27;品牌id&#x27;,</span><br><span class="line">   product_category_id  bigint comment &#x27;品牌分类id&#x27;,</span><br><span class="line">   feight_template_id   bigint comment &#x27;运费模版id&#x27;,</span><br><span class="line">   product_attribute_category_id bigint comment &#x27;品牌属性分类id&#x27;,</span><br><span class="line">   name                 varchar(64) not null comment &#x27;商品名称&#x27;,</span><br><span class="line">   pic                  varchar(255) comment &#x27;图片&#x27;,</span><br><span class="line">   product_sn           varchar(64) not null comment &#x27;货号&#x27;,</span><br><span class="line">   delete_status        int(1) comment &#x27;删除状态：0-&gt;未删除；1-&gt;已删除&#x27;,</span><br><span class="line">   publish_status       int(1) comment &#x27;上架状态：0-&gt;下架；1-&gt;上架&#x27;,</span><br><span class="line">   new_status           int(1) comment &#x27;新品状态:0-&gt;不是新品；1-&gt;新品&#x27;,</span><br><span class="line">   recommand_status     int(1) comment &#x27;推荐状态；0-&gt;不推荐；1-&gt;推荐&#x27;,</span><br><span class="line">   verify_status        int(1) comment &#x27;审核状态：0-&gt;未审核；1-&gt;审核通过&#x27;,</span><br><span class="line">   sort                 int comment &#x27;排序&#x27;,</span><br><span class="line">   sale                 int comment &#x27;销量&#x27;,</span><br><span class="line">   price                decimal(10,2) comment &#x27;价格&#x27;,</span><br><span class="line">   promotion_price      decimal(10,2) comment &#x27;促销价格&#x27;,</span><br><span class="line">   gift_growth          int default 0 comment &#x27;赠送的成长值&#x27;,</span><br><span class="line">   gift_point           int default 0 comment &#x27;赠送的积分&#x27;,</span><br><span class="line">   use_point_limit      int comment &#x27;限制使用的积分数&#x27;,</span><br><span class="line">   sub_title            varchar(255) comment &#x27;副标题&#x27;,</span><br><span class="line">   description          text comment &#x27;商品描述&#x27;,</span><br><span class="line">   original_price       decimal(10,2) comment &#x27;市场价&#x27;,</span><br><span class="line">   stock                int comment &#x27;库存&#x27;,</span><br><span class="line">   low_stock            int comment &#x27;库存预警值&#x27;,</span><br><span class="line">   unit                 varchar(16) comment &#x27;单位&#x27;,</span><br><span class="line">   weight               decimal(10,2) comment &#x27;商品重量，默认为克&#x27;,</span><br><span class="line">   preview_status       int(1) comment &#x27;是否为预告商品：0-&gt;不是；1-&gt;是&#x27;,</span><br><span class="line">   service_ids          varchar(64) comment &#x27;以逗号分割的产品服务：1-&gt;无忧退货；2-&gt;快速退款；3-&gt;免费包邮&#x27;,</span><br><span class="line">   keywords             varchar(255) comment &#x27;关键字&#x27;,</span><br><span class="line">   note                 varchar(255) comment &#x27;备注&#x27;,</span><br><span class="line">   album_pics           varchar(255) comment &#x27;画册图片，连产品图片限制为5张，以逗号分割&#x27;,</span><br><span class="line">   detail_title         varchar(255) comment &#x27;详情标题&#x27;,</span><br><span class="line">   detail_desc          text comment &#x27;详情描述&#x27;,</span><br><span class="line">   detail_html          text comment &#x27;产品详情网页内容&#x27;,</span><br><span class="line">   detail_mobile_html   text comment &#x27;移动端网页详情&#x27;,</span><br><span class="line">   promotion_start_time datetime comment &#x27;促销开始时间&#x27;,</span><br><span class="line">   promotion_end_time   datetime comment &#x27;促销结束时间&#x27;,</span><br><span class="line">   promotion_per_limit  int comment &#x27;活动限购数量&#x27;,</span><br><span class="line">   promotion_type       int(1) comment &#x27;促销类型：0-&gt;没有促销使用原价;1-&gt;使用促销价；2-&gt;使用会员价；3-&gt;使用阶梯价格；4-&gt;使用满减价格；5-&gt;限时购&#x27;,</span><br><span class="line">   product_category_name varchar(255) comment &#x27;产品分类名称&#x27;,</span><br><span class="line">   brand_name           varchar(255) comment &#x27;品牌名称&#x27;,</span><br><span class="line">   primary key (id)</span><br><span class="line">);</span><br></pre></td></tr></table></figure>

<h4 id="商品SKU表"><a href="#商品SKU表" class="headerlink" title="#商品SKU表"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%95%86%E5%93%81sku%E8%A1%A8">#</a>商品SKU表</h4><blockquote>
<p>SKU(Stock Keeping Unit)是指库存量单位，SPU(Standard Product Unit)是指标准产品单位。举个例子：iphone xs是一个SPU，而iphone xs 公开版 64G 银色是一个SKU。</p>
</blockquote>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">create table pms_sku_stock</span><br><span class="line">(</span><br><span class="line">   id                   bigint not null auto_increment,</span><br><span class="line">   product_id           bigint comment &#x27;商品id&#x27;,</span><br><span class="line">   sku_code             varchar(64) not null comment &#x27;sku编码&#x27;,</span><br><span class="line">   price                decimal(10,2) comment &#x27;价格&#x27;,</span><br><span class="line">   stock                int default 0 comment &#x27;库存&#x27;,</span><br><span class="line">   low_stock            int comment &#x27;预警库存&#x27;,</span><br><span class="line">   sp1                  varchar(64) comment &#x27;规格属性1&#x27;,</span><br><span class="line">   sp2                  varchar(64) comment &#x27;规格属性2&#x27;,</span><br><span class="line">   sp3                  varchar(64) comment &#x27;规格属性3&#x27;,</span><br><span class="line">   pic                  varchar(255) comment &#x27;展示图片&#x27;,</span><br><span class="line">   sale                 int comment &#x27;销量&#x27;,</span><br><span class="line">   promotion_price      decimal(10,2) comment &#x27;单品促销价格&#x27;,</span><br><span class="line">   lock_stock           int default 0 comment &#x27;锁定库存&#x27;,</span><br><span class="line">   primary key (id)</span><br><span class="line">);</span><br></pre></td></tr></table></figure>

<h4 id="商品阶梯价格表"><a href="#商品阶梯价格表" class="headerlink" title="#商品阶梯价格表"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%95%86%E5%93%81%E9%98%B6%E6%A2%AF%E4%BB%B7%E6%A0%BC%E8%A1%A8">#</a>商品阶梯价格表</h4><blockquote>
<p>商品优惠相关表，购买同商品满足一定数量后，可以使用打折价格进行购买。如：买两件商品可以打八折。</p>
</blockquote>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">create table pms_product_ladder</span><br><span class="line">(</span><br><span class="line">   id                   bigint not null auto_increment,</span><br><span class="line">   product_id           bigint comment &#x27;商品id&#x27;,</span><br><span class="line">   count                int comment &#x27;满足的商品数量&#x27;,</span><br><span class="line">   discount             decimal(10,2) comment &#x27;折扣&#x27;,</span><br><span class="line">   price                decimal(10,2) comment &#x27;折后价格&#x27;,</span><br><span class="line">   primary key (id)</span><br><span class="line">);</span><br></pre></td></tr></table></figure>

<h4 id="商品满减表"><a href="#商品满减表" class="headerlink" title="#商品满减表"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%95%86%E5%93%81%E6%BB%A1%E5%87%8F%E8%A1%A8">#</a>商品满减表</h4><blockquote>
<p>商品优惠相关表，购买同商品满足一定金额后，可以减免一定金额。如：买满1000减100元。</p>
</blockquote>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">create table pms_product_full_reduction</span><br><span class="line">(</span><br><span class="line">   id                   bigint not null auto_increment,</span><br><span class="line">   product_id           bigint comment &#x27;商品id&#x27;,</span><br><span class="line">   full_price           decimal(10,2) comment &#x27;商品满足金额&#x27;,</span><br><span class="line">   reduce_price         decimal(10,2) comment &#x27;商品减少金额&#x27;,</span><br><span class="line">   primary key (id)</span><br><span class="line">);</span><br></pre></td></tr></table></figure>

<h4 id="商品会员价格表"><a href="#商品会员价格表" class="headerlink" title="#商品会员价格表"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%95%86%E5%93%81%E4%BC%9A%E5%91%98%E4%BB%B7%E6%A0%BC%E8%A1%A8">#</a>商品会员价格表</h4><blockquote>
<p>根据不同会员等级，可以以不同的会员价格购买。此处设计有缺陷，可以做成不同会员等级可以减免多少元或者按多少折扣进行购买。</p>
</blockquote>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">create table pms_member_price</span><br><span class="line">(</span><br><span class="line">   id                   bigint not null auto_increment,</span><br><span class="line">   product_id           bigint comment &#x27;商品id&#x27;,</span><br><span class="line">   member_level_id      bigint comment &#x27;会员等级id&#x27;,</span><br><span class="line">   member_price         decimal(10,2) comment &#x27;会员价格&#x27;,</span><br><span class="line">   member_level_name    varchar(100) comment &#x27;会员等级名称&#x27;,</span><br><span class="line">   primary key (id)</span><br><span class="line">);</span><br></pre></td></tr></table></figure>

<h3 id="管理端展现"><a href="#管理端展现" class="headerlink" title="#管理端展现"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E7%AE%A1%E7%90%86%E7%AB%AF%E5%B1%95%E7%8E%B0">#</a>管理端展现</h3><h4 id="填写商品信息"><a href="#填写商品信息" class="headerlink" title="#填写商品信息"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%A1%AB%E5%86%99%E5%95%86%E5%93%81%E4%BF%A1%E6%81%AF">#</a>填写商品信息</h4><p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/2024-02-02_23:12:20_database_screen_22-d49bedf7.png"></p>
<h4 id="填写商品促销"><a href="#填写商品促销" class="headerlink" title="#填写商品促销"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%A1%AB%E5%86%99%E5%95%86%E5%93%81%E4%BF%83%E9%94%80">#</a>填写商品促销</h4><p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/2024-02-02_23:12:20_database_screen_17-a4c18c27.png"></p>
<h5 id="特惠促销"><a href="#特惠促销" class="headerlink" title="#特惠促销"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E7%89%B9%E6%83%A0%E4%BF%83%E9%94%80">#</a>特惠促销</h5><p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/2024-02-02_23:12:20_database_screen_18-651d22a3.png"></p>
<h5 id="会员价格"><a href="#会员价格" class="headerlink" title="#会员价格"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E4%BC%9A%E5%91%98%E4%BB%B7%E6%A0%BC">#</a>会员价格</h5><p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/2024-02-02_23:12:20_database_screen_19-1bb2228a.png"></p>
<h5 id="阶梯价格"><a href="#阶梯价格" class="headerlink" title="#阶梯价格"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E9%98%B6%E6%A2%AF%E4%BB%B7%E6%A0%BC">#</a>阶梯价格</h5><p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/2024-02-02_23:12:20_database_screen_20-c611dc2a.png"></p>
<h5 id="满减价格"><a href="#满减价格" class="headerlink" title="#满减价格"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E6%BB%A1%E5%87%8F%E4%BB%B7%E6%A0%BC">#</a>满减价格</h5><p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/2024-02-02_23:12:20_database_screen_21-940d892a.png"></p>
<h4 id="填写商品属性"><a href="#填写商品属性" class="headerlink" title="#填写商品属性"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%A1%AB%E5%86%99%E5%95%86%E5%93%81%E5%B1%9E%E6%80%A7">#</a>填写商品属性</h4><p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/2024-02-02_23:12:20_database_screen_25-82a4e1a0.png"></p>
<h4 id="选择商品关联"><a href="#选择商品关联" class="headerlink" title="#选择商品关联"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E9%80%89%E6%8B%A9%E5%95%86%E5%93%81%E5%85%B3%E8%81%94">#</a>选择商品关联</h4><p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/2024-02-02_23:12:20_database_screen_26-1d38e04c.png"></p>
<h3 id="移动端展现"><a href="#移动端展现" class="headerlink" title="#移动端展现"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E7%A7%BB%E5%8A%A8%E7%AB%AF%E5%B1%95%E7%8E%B0">#</a>移动端展现</h3><h4 id="商品介绍"><a href="#商品介绍" class="headerlink" title="#商品介绍"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%95%86%E5%93%81%E4%BB%8B%E7%BB%8D">#</a>商品介绍</h4><p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/2024-02-02_23:12:20_database_screen_27-92dfdda3.png"></p>
<h4 id="图文详情"><a href="#图文详情" class="headerlink" title="#图文详情"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%9B%BE%E6%96%87%E8%AF%A6%E6%83%85">#</a>图文详情</h4><p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/2024-02-02_23:12:20_database_screen_28-cc516b56.png"></p>
<h4 id="相关专题"><a href="#相关专题" class="headerlink" title="#相关专题"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E7%9B%B8%E5%85%B3%E4%B8%93%E9%A2%98">#</a>相关专题</h4><p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/2024-02-02_23:12:20_database_screen_29-b9a279fb.png"></p>
<h2 id="商品评价及回复"><a href="#商品评价及回复" class="headerlink" title="#商品评价及回复"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%95%86%E5%93%81%E8%AF%84%E4%BB%B7%E5%8F%8A%E5%9B%9E%E5%A4%8D">#</a>商品评价及回复</h2><h3 id="相关表结构-1"><a href="#相关表结构-1" class="headerlink" title="#相关表结构"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E7%9B%B8%E5%85%B3%E8%A1%A8%E7%BB%93%E6%9E%84-1">#</a>相关表结构</h3><h4 id="商品评价表"><a href="#商品评价表" class="headerlink" title="#商品评价表"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%95%86%E5%93%81%E8%AF%84%E4%BB%B7%E8%A1%A8">#</a>商品评价表</h4><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br></pre></td><td class="code"><pre><span class="line">create table pms_comment</span><br><span class="line">(</span><br><span class="line">   id                   bigint not null auto_increment,</span><br><span class="line">   product_id           bigint comment &#x27;商品id&#x27;,</span><br><span class="line">   member_nick_name     varchar(255) comment &#x27;会员昵称&#x27;,</span><br><span class="line">   product_name         varchar(255) comment &#x27;商品名称&#x27;,</span><br><span class="line">   star                 int(3) comment &#x27;评价星数：0-&gt;5&#x27;,</span><br><span class="line">   member_ip            varchar(64) comment &#x27;评价的ip&#x27;,</span><br><span class="line">   create_time          datetime comment &#x27;创建时间&#x27;,</span><br><span class="line">   show_status          int(1) comment &#x27;是否显示&#x27;,</span><br><span class="line">   product_attribute    varchar(255) comment &#x27;购买时的商品属性&#x27;,</span><br><span class="line">   collect_couont       int comment &#x27;收藏数&#x27;,</span><br><span class="line">   read_count           int comment &#x27;阅读数&#x27;,</span><br><span class="line">   content              text comment &#x27;内容&#x27;,</span><br><span class="line">   pics                 varchar(1000) comment &#x27;上传图片地址，以逗号隔开&#x27;,</span><br><span class="line">   member_icon          varchar(255) comment &#x27;评论用户头像&#x27;,</span><br><span class="line">   replay_count         int comment &#x27;回复数&#x27;,</span><br><span class="line">   primary key (id)</span><br><span class="line">);</span><br></pre></td></tr></table></figure>

<h4 id="产品评价回复表"><a href="#产品评价回复表" class="headerlink" title="#产品评价回复表"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E4%BA%A7%E5%93%81%E8%AF%84%E4%BB%B7%E5%9B%9E%E5%A4%8D%E8%A1%A8">#</a>产品评价回复表</h4><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">create table pms_comment_replay</span><br><span class="line">(</span><br><span class="line">   id                   bigint not null auto_increment,</span><br><span class="line">   comment_id           bigint comment &#x27;评论id&#x27;,</span><br><span class="line">   member_nick_name     varchar(255) comment &#x27;会员昵称&#x27;,</span><br><span class="line">   member_icon          varchar(255) comment &#x27;会员头像&#x27;,</span><br><span class="line">   content              varchar(1000) comment &#x27;内容&#x27;,</span><br><span class="line">   create_time          datetime comment &#x27;创建时间&#x27;,</span><br><span class="line">   type                 int(1) comment &#x27;评论人员类型；0-&gt;会员；1-&gt;管理员&#x27;,</span><br><span class="line">   primary key (id)</span><br><span class="line">);</span><br></pre></td></tr></table></figure>

<h3 id="移动端展现-1"><a href="#移动端展现-1" class="headerlink" title="#移动端展现"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E7%A7%BB%E5%8A%A8%E7%AB%AF%E5%B1%95%E7%8E%B0-1">#</a>移动端展现</h3><h4 id="商品评价列表"><a href="#商品评价列表" class="headerlink" title="#商品评价列表"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%95%86%E5%93%81%E8%AF%84%E4%BB%B7%E5%88%97%E8%A1%A8">#</a>商品评价列表</h4><p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/2024-02-02_23:12:20_database_screen_30-c77f07b6.png"></p>
<h4 id="商品评价详情"><a href="#商品评价详情" class="headerlink" title="#商品评价详情"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%95%86%E5%93%81%E8%AF%84%E4%BB%B7%E8%AF%A6%E6%83%85">#</a>商品评价详情</h4><p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/2024-02-02_23:12:20_database_screen_31-3dbee8e3.png"></p>
<h4 id="商品回复列表"><a href="#商品回复列表" class="headerlink" title="#商品回复列表"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%95%86%E5%93%81%E5%9B%9E%E5%A4%8D%E5%88%97%E8%A1%A8">#</a>商品回复列表</h4><p><img src="/undefined"></p>
<h2 id="商品审核及操作记录"><a href="#商品审核及操作记录" class="headerlink" title="#商品审核及操作记录"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%95%86%E5%93%81%E5%AE%A1%E6%A0%B8%E5%8F%8A%E6%93%8D%E4%BD%9C%E8%AE%B0%E5%BD%95">#</a>商品审核及操作记录</h2><h3 id="相关表结构-2"><a href="#相关表结构-2" class="headerlink" title="#相关表结构"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E7%9B%B8%E5%85%B3%E8%A1%A8%E7%BB%93%E6%9E%84-2">#</a>相关表结构</h3><h4 id="商品审核记录表"><a href="#商品审核记录表" class="headerlink" title="#商品审核记录表"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%95%86%E5%93%81%E5%AE%A1%E6%A0%B8%E8%AE%B0%E5%BD%95%E8%A1%A8">#</a>商品审核记录表</h4><blockquote>
<p>用于记录商品审核记录</p>
</blockquote>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">create table pms_product_vertify_record</span><br><span class="line">(</span><br><span class="line">   id                   bigint not null auto_increment,</span><br><span class="line">   product_id           bigint comment &#x27;商品id&#x27;,</span><br><span class="line">   create_time          datetime comment &#x27;创建时间&#x27;,</span><br><span class="line">   vertify_man          varchar(64) comment &#x27;审核人&#x27;,</span><br><span class="line">   status               int(1) comment &#x27;审核后的状态：0-&gt;未通过；2-&gt;已通过&#x27;,</span><br><span class="line">   detail               varchar(255) comment &#x27;反馈详情&#x27;,</span><br><span class="line">   primary key (id)</span><br><span class="line">);</span><br></pre></td></tr></table></figure>

<h4 id="商品操作记录表"><a href="#商品操作记录表" class="headerlink" title="#商品操作记录表"></a><a target="_blank" rel="noopener" href="https://www.macrozheng.com/mall/database/mall_pms_02.html#%E5%95%86%E5%93%81%E6%93%8D%E4%BD%9C%E8%AE%B0%E5%BD%95%E8%A1%A8">#</a>商品操作记录表</h4><blockquote>
<p>用于记录商品操作记录</p>
</blockquote>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">create table pms_product_operate_log</span><br><span class="line">(</span><br><span class="line">   id                   bigint not null auto_increment,</span><br><span class="line">   product_id           bigint comment &#x27;商品id&#x27;,</span><br><span class="line">   price_old            decimal(10,2) comment &#x27;改变前价格&#x27;,</span><br><span class="line">   price_new            decimal(10,2) comment &#x27;改变后价格&#x27;,</span><br><span class="line">   sale_price_old       decimal(10,2) comment &#x27;改变前优惠价&#x27;,</span><br><span class="line">   sale_price_new       decimal(10,2) comment &#x27;改变后优惠价&#x27;,</span><br><span class="line">   gift_point_old       int comment &#x27;改变前积分&#x27;,</span><br><span class="line">   gift_point_new       int comment &#x27;改变后积分&#x27;,</span><br><span class="line">   use_point_limit_old  int comment &#x27;改变前积分使用限制&#x27;,</span><br><span class="line">   use_point_limit_new  int comment &#x27;改变后积分使用限制&#x27;,</span><br><span class="line">   operate_man          varchar(64) comment &#x27;操作人&#x27;,</span><br><span class="line">   create_time          datetime comment &#x27;创建时间&#x27;,</span><br><span class="line">   primary key (id)</span><br><span class="line">);</span><br></pre></td></tr></table></figure></article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta"><i class="fas fa-circle-user fa-fw"></i>文章作者: </span><span class="post-copyright-info"><a href="https://ko25891wan.gitlab.io">十一星野</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta"><i class="fas fa-square-arrow-up-right fa-fw"></i>文章链接: </span><span class="post-copyright-info"><a href="https://ko25891wan.gitlab.io/2024/01/7ffcadad798e.html">https://ko25891wan.gitlab.io/2024/01/7ffcadad798e.html</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta"><i class="fas fa-circle-exclamation fa-fw"></i>版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://ko25891wan.gitlab.io" target="_blank">小小程序员</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"></div><div class="post_share"></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2024/01/73776332d458.html" title="商品模块数据库表解析（一）"><div class="cover" style="background: var(--default-bg-color)"></div><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">商品模块数据库表解析（一）</div></div></a></div><div class="next-post pull-right"><a href="/2024/01/37de6748bacf.html" title="订单模块数据库表解析（一）"><div class="cover" style="background: var(--default-bg-color)"></div><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">订单模块数据库表解析（一）</div></div></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/%E5%A4%B4%E5%83%8F/%E7%81%B0%E5%A4%AA%E7%8B%BC.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">十一星野</div><div class="author-info__description">归途也还可爱</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">120</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">4</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">22</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://gitlab.com/ko25891wan/ko25891wan.gitlab.io"><i class="fab fa-github"></i><span>关注我</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://gitlab.com/ko25891wan/ko25891wan.gitlab.io" target="_blank" title="Github"><i class="fab fa-github" style="color: #24292e;"></i></a><a class="social-icon" href="https://gitlab.com/ko25891wan/ko25891wan.gitlab.io" target="_blank" title="Gitlab"><i class="fab fa-gitlab" style="color: #24292e;"></i></a><a class="social-icon" href="mailto:ko25891wan@outlook.com" target="_blank" title="Email"><i class="fas fa-envelope" style="color: #4a7dbe;"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">This is my Blog</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%9B%B8%E5%85%B3%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B"><span class="toc-number">1.</span> <span class="toc-text">相关视频教程</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%BC%96%E8%BE%91%E5%95%86%E5%93%81"><span class="toc-number">2.</span> <span class="toc-text">编辑商品</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%9B%B8%E5%85%B3%E8%A1%A8%E7%BB%93%E6%9E%84"><span class="toc-number">2.1.</span> <span class="toc-text">相关表结构</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%95%86%E5%93%81%E8%A1%A8"><span class="toc-number">2.1.1.</span> <span class="toc-text">商品表</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%95%86%E5%93%81SKU%E8%A1%A8"><span class="toc-number">2.1.2.</span> <span class="toc-text">商品SKU表</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%95%86%E5%93%81%E9%98%B6%E6%A2%AF%E4%BB%B7%E6%A0%BC%E8%A1%A8"><span class="toc-number">2.1.3.</span> <span class="toc-text">商品阶梯价格表</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%95%86%E5%93%81%E6%BB%A1%E5%87%8F%E8%A1%A8"><span class="toc-number">2.1.4.</span> <span class="toc-text">商品满减表</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%95%86%E5%93%81%E4%BC%9A%E5%91%98%E4%BB%B7%E6%A0%BC%E8%A1%A8"><span class="toc-number">2.1.5.</span> <span class="toc-text">商品会员价格表</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%AE%A1%E7%90%86%E7%AB%AF%E5%B1%95%E7%8E%B0"><span class="toc-number">2.2.</span> <span class="toc-text">管理端展现</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%A1%AB%E5%86%99%E5%95%86%E5%93%81%E4%BF%A1%E6%81%AF"><span class="toc-number">2.2.1.</span> <span class="toc-text">填写商品信息</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%A1%AB%E5%86%99%E5%95%86%E5%93%81%E4%BF%83%E9%94%80"><span class="toc-number">2.2.2.</span> <span class="toc-text">填写商品促销</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#%E7%89%B9%E6%83%A0%E4%BF%83%E9%94%80"><span class="toc-number">2.2.2.1.</span> <span class="toc-text">特惠促销</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#%E4%BC%9A%E5%91%98%E4%BB%B7%E6%A0%BC"><span class="toc-number">2.2.2.2.</span> <span class="toc-text">会员价格</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#%E9%98%B6%E6%A2%AF%E4%BB%B7%E6%A0%BC"><span class="toc-number">2.2.2.3.</span> <span class="toc-text">阶梯价格</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#%E6%BB%A1%E5%87%8F%E4%BB%B7%E6%A0%BC"><span class="toc-number">2.2.2.4.</span> <span class="toc-text">满减价格</span></a></li></ol></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%A1%AB%E5%86%99%E5%95%86%E5%93%81%E5%B1%9E%E6%80%A7"><span class="toc-number">2.2.3.</span> <span class="toc-text">填写商品属性</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E9%80%89%E6%8B%A9%E5%95%86%E5%93%81%E5%85%B3%E8%81%94"><span class="toc-number">2.2.4.</span> <span class="toc-text">选择商品关联</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%A7%BB%E5%8A%A8%E7%AB%AF%E5%B1%95%E7%8E%B0"><span class="toc-number">2.3.</span> <span class="toc-text">移动端展现</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%95%86%E5%93%81%E4%BB%8B%E7%BB%8D"><span class="toc-number">2.3.1.</span> <span class="toc-text">商品介绍</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%9B%BE%E6%96%87%E8%AF%A6%E6%83%85"><span class="toc-number">2.3.2.</span> <span class="toc-text">图文详情</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E7%9B%B8%E5%85%B3%E4%B8%93%E9%A2%98"><span class="toc-number">2.3.3.</span> <span class="toc-text">相关专题</span></a></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%95%86%E5%93%81%E8%AF%84%E4%BB%B7%E5%8F%8A%E5%9B%9E%E5%A4%8D"><span class="toc-number">3.</span> <span class="toc-text">商品评价及回复</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%9B%B8%E5%85%B3%E8%A1%A8%E7%BB%93%E6%9E%84-1"><span class="toc-number">3.1.</span> <span class="toc-text">相关表结构</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%95%86%E5%93%81%E8%AF%84%E4%BB%B7%E8%A1%A8"><span class="toc-number">3.1.1.</span> <span class="toc-text">商品评价表</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E4%BA%A7%E5%93%81%E8%AF%84%E4%BB%B7%E5%9B%9E%E5%A4%8D%E8%A1%A8"><span class="toc-number">3.1.2.</span> <span class="toc-text">产品评价回复表</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%A7%BB%E5%8A%A8%E7%AB%AF%E5%B1%95%E7%8E%B0-1"><span class="toc-number">3.2.</span> <span class="toc-text">移动端展现</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%95%86%E5%93%81%E8%AF%84%E4%BB%B7%E5%88%97%E8%A1%A8"><span class="toc-number">3.2.1.</span> <span class="toc-text">商品评价列表</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%95%86%E5%93%81%E8%AF%84%E4%BB%B7%E8%AF%A6%E6%83%85"><span class="toc-number">3.2.2.</span> <span class="toc-text">商品评价详情</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%95%86%E5%93%81%E5%9B%9E%E5%A4%8D%E5%88%97%E8%A1%A8"><span class="toc-number">3.2.3.</span> <span class="toc-text">商品回复列表</span></a></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%95%86%E5%93%81%E5%AE%A1%E6%A0%B8%E5%8F%8A%E6%93%8D%E4%BD%9C%E8%AE%B0%E5%BD%95"><span class="toc-number">4.</span> <span class="toc-text">商品审核及操作记录</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%9B%B8%E5%85%B3%E8%A1%A8%E7%BB%93%E6%9E%84-2"><span class="toc-number">4.1.</span> <span class="toc-text">相关表结构</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%95%86%E5%93%81%E5%AE%A1%E6%A0%B8%E8%AE%B0%E5%BD%95%E8%A1%A8"><span class="toc-number">4.1.1.</span> <span class="toc-text">商品审核记录表</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%95%86%E5%93%81%E6%93%8D%E4%BD%9C%E8%AE%B0%E5%BD%95%E8%A1%A8"><span class="toc-number">4.1.2.</span> <span class="toc-text">商品操作记录表</span></a></li></ol></li></ol></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/02/c60470b9a892.html" title="Java集合使用注意事项总结">Java集合使用注意事项总结</a><time datetime="2024-02-03T04:58:22.000Z" title="发表于 2024-02-03 12:58:22">2024-02-03</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/02/81fb7a201f29.html" title="无题">无题</a><time datetime="2024-02-03T03:15:31.812Z" title="发表于 2024-02-03 11:15:31">2024-02-03</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/01/5737c1ec69a9.html" title="Wed Jan 17 2024 00:00:00 GMT+0800 (中国标准时间)">Wed Jan 17 2024 00:00:00 GMT+0800 (中国标准时间)</a><time datetime="2024-01-31T06:56:16.000Z" title="发表于 2024-01-31 14:56:16">2024-01-31</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/01/f510db7d2f19.html" title="Spring常见面试题总结">Spring常见面试题总结</a><time datetime="2024-01-31T06:55:58.000Z" title="发表于 2024-01-31 14:55:58">2024-01-31</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/01/9be065e9f288.html" title="redis 面试">redis 面试</a><time datetime="2024-01-31T06:55:55.000Z" title="发表于 2024-01-31 14:55:55">2024-01-31</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2023 - 2024 By 十一星野</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="translateLink" type="button" title="简繁转换">简</button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside-config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="https://cdn.staticfile.org/fancyapps-ui/5.0.32/fancybox/fancybox.umd.min.js"></script><script src="https://cdn.staticfile.org/instant.page/5.2.0/instantpage.min.js" type="module"></script><div class="js-pjax"></div><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span>  数据库加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div><hr/><div id="local-search-results"></div><div id="local-search-stats-wrap"></div></div></div><div id="search-mask"></div><script src="/js/search/local-search.js"></script></div></div></body></html>